<?php

lentele("Apie - ".$conf['Pavadinimas'],'<div class="sarasas">'.$conf['Apie'].'</div><hr />');

$adminai = ''; $moderatoriai = '';

$sql = mysql_query1("SELECT id, reg_data, gim_data, login_data, nick, vardas, levelis, pavarde FROM `".LENTELES_PRIESAGA."users` WHERE levelis=30 OR levelis=20");
//$sql1 = mysql_query1("SELECT id, INET_NTOA(ip) AS reg_data, gim_data, login_data, nick, vardas, pavarde FROM `".LENTELES_PRIESAGA."users` WHERE levelis=20");

while ($row = mysql_fetch_assoc($sql)) {
	if ($row['levelis'] == 30) {
		$adminai .= "
		<div class=\"sarasas\"><a href=\"?id,47;m,".$row['id']."\" title=\"header=[".$row['nick']."] body=[
		<br/>
		Užsiregistravo: <b>".$row['reg_data']." - ".kada($row['reg_data'])."</b><br/>
		Lankėsi: <b>".kada($row['login_data'])."</b><br/>
		Vardas pav.: <b>".$row['vardas']." ".$row['pavarde']."</b><br/>
		Amžius: <b>".amzius($row['gim_data'])."</b><br/><br/>
		] fade=[on]\" title=\"2007-01-14 19:36:24\">".$row['nick']."</a>
		<a href=\"?id,45;n,1;u,".$row['nick']."\"><img src=\"images/pm/mail.png\" alt=\"pm\" border=\"0\" /></a></div>";
	}
	elseif ($row['levelis'] == 20) {
		$moderatoriai .= "
		<div class=\"sarasas\"><a href=\"?id,47;m,".$row['id']."\" title=\"header=[".$row['nick']."] body=[
		<br/>
		Užsiregistravo: <b>".$row['reg_data']." - ".kada($row['reg_data'])."</b><br/>
		Lankėsi: <b>".kada($row['login_data'])."</b><br/>
		Vardas pav.: <b>".$row['vardas']." ".$row['pavarde']."</b><br/>
		Amžius: <b>".amzius($row['gim_data'])."</b><br/><br/>
		] fade=[on]\" title=\"2007-01-14 19:36:24\">".$row['nick']."</a>
		<a href=\"?id,45;n,1;u,".$row['nick']."\"><img src=\"images/pm/mail.png\" alt=\"pm\" border=\"0\" /></a></div>";
	}
}
if (!empty($adminai)) lentele("Svetainės administratoriai:",$adminai);
if (!empty($moderatoriai)) lentele("Svetainės moderatoriai:",$moderatoriai);

unset($adminai,$moderatoriai);

?>